
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>5.vagrant_开发端口 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="schema_xml_dataHost.html" />
    
    
    <link rel="prev" href="linux切换语言.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="linux_安装mysql.html">
            
                <a href="linux_安装mysql.html">
            
                    
                    1.CentOS7离线安装MySQL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="mycat目录.html">
            
                <a href="mycat目录.html">
            
                    
                    2.mycat目录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="linux_安装mycat.html">
            
                <a href="linux_安装mycat.html">
            
                    
                    3.linux_安装mycat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="mycat的端口.html">
            
                <a href="mycat的端口.html">
            
                    
                    3.mycat的端口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="linux切换语言.html">
            
                <a href="linux切换语言.html">
            
                    
                    4.linux切换语言
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.7" data-path="vagrant_开发端口.html">
            
                <a href="vagrant_开发端口.html">
            
                    
                    5.vagrant_开发端口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="schema_xml_dataHost.html">
            
                <a href="schema_xml_dataHost.html">
            
                    
                    6.schema.xml dataHost
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="mycat简单入门demo.html">
            
                <a href="mycat简单入门demo.html">
            
                    
                    7.mycat简单入门demo
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="读写分离.html">
            
                <a href="读写分离.html">
            
                    
                    8.读写分离
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="多个vagrant.html">
            
                <a href="多个vagrant.html">
            
                    
                    9.多个vagrant
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="mycat_router.html">
            
                <a href="mycat_router.html">
            
                    
                    10.mycat_router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="mysql如何做到主从复制.html">
            
                <a href="mysql如何做到主从复制.html">
            
                    
                    11.mysql如何做到主从复制
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >5.vagrant_开发端口</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <p>vagrant_&#x5F00;&#x53D1;&#x7AEF;&#x53E3;</p>
<p>&#x7528;&#x4E86;&#x4E24;&#x5E74;vagrant&#x5374;&#x53D1;&#x73B0;&#x4ECE;&#x6765;&#x6CA1;&#x53BB;&#x4E86;&#x89E3;&#x8FC7;&#x5B83;&#x7684;&#x914D;&#x7F6E;&#xFF0C;&#x4EE5;&#x81F3;&#x4E8E;&#x8FDE;&#x600E;&#x4E48;&#x5C06;&#x7269;&#x7406;&#x673A;&#x7AEF;&#x53E3;&#x6620;&#x5C04;&#x5230;&#x865A;&#x62DF;&#x673A;&#x7AEF;&#x53E3;&#x90FD;&#x4E0D;&#x77E5;&#x9053;&#x3002;&#x3002;&#x3002;&#x7F6A;&#x8FC7;
&#x5728;vagrant&#x914D;&#x7F6E;&#x6587;&#x4EF6;vagrantfile&#x4E2D;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x5982;&#x4E0B;&#x914D;&#x7F6E;</p>
<pre><code>config.vm.network &quot;forwarded_port&quot;, guest: 80, host: 8080
</code></pre><p>&#x8FD9;&#x4E00;&#x884C;&#x7684;&#x610F;&#x601D;&#x5C31;&#x662F;&#x628A;&#x5BF9;host&#x673A;&#x5668;&#x4E0A;8080&#x7AEF;&#x53E3;&#x7684;&#x8BBF;&#x95EE;&#x8BF7;&#x6C42;forward&#x5230;&#x865A;&#x62DF;&#x673A;&#x7684;80&#x7AEF;&#x53E3;&#x7684;&#x670D;&#x52A1;&#x4E0A;&#xFF0C;&#x5982;&#x679C;&#x8981;&#x518D;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x7AEF;&#x53E3;&#x8F6C;&#x53D1;</p>
<pre><code>config.vm.network &quot;forwarded_port&quot;, guest: 80, host: 8080
config.vm.network &quot;forwarded_port&quot;, guest: 8181, host: 8181
</code></pre><p>&#x6DFB;&#x52A0;&#x5B8C;&#x4E4B;&#x540E;&#x6267;&#x884C;<code>vagrant reload</code>&#x547D;&#x4EE4;&#x91CD;&#x65B0;&#x52A0;&#x8F7D;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5373;&#x53EF;&#xFF0C;so easy~</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="linux切换语言.html" class="navigation navigation-prev " aria-label="Previous page: 4.linux切换语言">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="schema_xml_dataHost.html" class="navigation navigation-next " aria-label="Next page: 6.schema.xml dataHost">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"5.vagrant_开发端口","level":"1.7","depth":1,"next":{"title":"6.schema.xml dataHost","level":"1.8","depth":1,"path":"schema_xml_dataHost.md","ref":"./schema_xml_dataHost.md","articles":[]},"previous":{"title":"4.linux切换语言","level":"1.6","depth":1,"path":"linux切换语言.md","ref":"./linux切换语言.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"vagrant_开发端口.md","mtime":"2018-07-21T11:36:01.612Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-07-23T06:58:37.163Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

